﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace GrayParrot.Web.Formly
{
    /// <summary>
    /// The CheckBox Template Options Attribute...
    /// </summary>
    public class CheckBoxTemplateOptionsAttribute : TemplateOptionsAttribute
    {
        [JsonProperty(PropertyName = "defaultValue", DefaultValueHandling = DefaultValueHandling.Ignore)]
        public bool DefaultValue { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="CheckBoxTemplateOptionsAttribute"/> class.
        /// </summary>
        public CheckBoxTemplateOptionsAttribute()
        {
            DefaultValue = false;
        }
    }
}
